import request from '@/common/api/request'

// 获取新渠道占比统计图  
export const httpNewChannelChart = () => {
    return request({
        method: 'GET',
        url: '/overview/newChannelChart',
    })
}
// 本地采购占比走势图
export const httpOverviewYhree = () => {
    return request({
        method: 'GET',
        url: '/overview/localProcurementChart',
    })
}

// 国际占比走势图
export const httpInternationalProportionChart = () => {
    return request({
        method: 'GET',
        url: '/overview/internationalProportionChart',
    })
}

//  获取精深加工占比统计图
export const httpDeepProcessChart = () => {
    return request({
        method: 'GET',
        url: '/overview/deepProcessChart',
    })
}
// 获取十大品种占比统计图
export const httpTopTenVarietyChart = () => {
    return request({
        method: 'GET',
        url: '/overview/topTenVarietyChart',
    })
}
// 获取十大企业占比统计图  
export const httpTopTenEnterpriseChart = () => {
    return request({
        method: 'GET',
        url: '/overview/topTenEnterpriseChart',
    })
}
// 获取贸易总览汇总统计图  
export const httpTradeSummaryChart = () => {
    return request({
        method: 'GET',
        url: '/overview/tradeSummaryChart',
    })
}

// 获取大B贸易统计图 
export const httpBigBTradeChart = () => {
    return request({
        method: 'GET',
        url: '/channel/bigBTradeChart',
    })
}

// 获取电商贸易统计图 
export const httpECommerceTradeChart = () => {
    return request({
        method: 'GET',
        url: '/channel/eCommerceTradeChart',
    })
}

// 获取批发市场贸易统计图 
export const httpWholesaleMarketTradeChart = () => {
    return request({
        method: 'GET',
        url: '/channel/wholesaleMarketTradeChart',
    })
}

// 获取商超贸易统计图 
export const httpSupermarketTradeChart = () => {
    return request({
        method: 'GET',
        url: '/channel/supermarketTradeChart',
    })
}

// 获取渠道占比统计图 
export const httpVariousChannelChart = () => {
    return request({
        method: 'GET',
        url: '/channel/variousChannelChart',
    })
}
// 渠道汇总信息 
export const httpChannelSummaryChart = () => {
    return request({
        method: 'GET',
        url: '/channel/channelSummaryChart',
    })
}
//获取国际贸易统计图
export const httpInternationalTradeChart = () => {
    return request({
        method: 'GET',
        url: '/salePlace/internationalTradeChart',
    })
}

// 获取国内贸易统计图 
export const httpDomesticTradeChart = () => {
    return request({
        method: 'GET',
        url: '/salePlace/domesticTradeChart',
    })
}

// 获取贸易总体概况 
export const httpTradeOverviewChart = () => {
    return request({
        method: 'GET',
        url: '/salePlace/tradeOverviewChart',
    })
}
// 获取十大市场贸易走向
export const httpTopTenMarketChart = (type) => {
    return request({
        method: 'GET',
        url: '/salePlace/topTenMarketChart/' + type,
    })
}


// 获取初加工统计图 
export const httpPreliminaryProcessChart = () => {
    return request({
        method: 'GET',
        url: '/machining/preliminaryProcessChart',
    })
}

// 获取精加工统计图 
export const httpAccurateProcessChart = () => {
    return request({
        method: 'GET',
        url: '/machining/accurateProcessChart',
    })
}

// 获取深加工统计图 thoroughProcessChart
export const httpThoroughProcessChart = () => {
    return request({
        method: 'GET',
        url: '/machining/thoroughProcessChart',
    })
}

// 获取前十大加工企业计图 processEnterpriseChart/{type} 0：初加工 1：精加工 2：深加工
export const httpProcessEnterpriseChart = (type) => {
    return request({
        method: 'GET',
        url: '/machining/processEnterpriseChart/' + type,
    })
}

// 获取汇总信息 
export const httpSummaryInformationChart = () => {
    return request({
        method: 'GET',
        url: '/machining/summaryInformationChart',
    })
}

// 获取本地市场统计图 
export const httpMarketLocalChart = () => {
    return request({
        method: 'GET',
        url: '/source/marketLocalChart',
    })
}

// 获取田头市场统计图 
export const httpMarketFieldChart = () => {
    return request({
        method: 'GET',
        url: '/source/marketFieldChart',
    })
}
// 获取外来流入统计图 
export const httpMarketNonlocalChart = () => {
    return request({
        method: 'GET',
        url: '/source/marketNonlocalChart',
    })
}

// 获取来源地占比图 
export const httpProcurementMarketProportionChart = () => {
    return request({
        method: 'GET',
        url: '/source/procurementMarketProportionChart',
    })
}
// 获取来源地汇总信息 
export const httpSourceSummaryInformationChart = () => {
    return request({
        method: 'GET',
        url: '/source/sourceSummaryInformationChart',
    })
}

// 获取采购市场统计列表 procurementMarketChart
export const httpProcurementMarketChart = () => {
    return request({
        method: 'GET',
        url: '/source/procurementMarketChart',
    })
}
// 获取各品种汇总信息 
export const httpVarietySummaryChart = () => {
    return request({
        method: 'GET',
        url: '/variety/varietySummaryChart',
    })
}

// 获取各品种采购销售列表 varietyPurchaseChart
export const httpVarietyPurchaseChart = () => {
    return request({
        method: 'GET',
        url: '/variety/varietyPurchaseChart',
    })
}

// 获取采购走势统计图 
export const httpPurchasingTrendChart = (dishName) => {
    return request({
        method: 'GET',
        url: '/variety/purchasingTrendChart?dishName=' + dishName,
    })
}

// 获取各品种采购占比统计图 
export const httpVarietyPurchaseProportionChart = () => {
    return request({
        method: 'GET',
        url: '/variety/varietyPurchaseProportionChart',
    })
}
// 获取各品种总体销售占比统计图 
export const httpPopulationSalesChart = () => {
    return request({
        method: 'GET',
        url: '/variety/populationSalesChart',
    })
}

// 获取各品种国际销售占比统计图
export const httpInternationalSalesChart = () => {
    return request({
        method: 'GET',
        url: '/variety/internationalSalesChart',
    })
}
// 获取各品种国内销售占比统计图 
export const httpDomesticSalesChart = () => {
    return request({
        method: 'GET',
        url: '/variety/domesticSalesChart',
    })
}

// 获取各品种名称 
export const httpListDishName = () => {
    return request({
        method: 'GET',
        url: '/variety/listDishName',
    })
}